// pages/profileTab/test/test.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    statusList: [{//顶部状态按钮
      "statusName": "全部",
      "id": "all"
    },
    {
      "statusName": "待支付",
      "id": "draft"
    },
    {
      "statusName": "待发货",
      "id": "waitSolve"
    },
    {
      "statusName": "已发货",
      "id": "doingSolve"
    },
    {
      "statusName": "交易成功",
      "id": "doneSolve"
    },
    ],
    isChecked: 0 //判断是否选中
  },
  //绑定顶部状态切换的点击事件
  choiceStatus: function (e) {
    console.log(e);
    var that = this;
    var code = e.currentTarget.id;
    that.setData({
      isChecked: code
    })
  },
})